package com.tang.lts.core.store;

import com.tang.lts.core.store.dbutils.ResultSetHandler;

/**
 * @author Tang
 * @classname SqlTemplate
 * @description [  ]
 * @date 2022/5/6 14:30
 */
public interface SqlTemplate {

    void createTable(final String sql);

    int insert(final String sql, final Object... ags);

    <T> T query(final String sql);

    <T> T query(final String sql,final ResultSetHandler<T> rSHandler,final Object ...args);

    <T> T executeInTransaction(SqlExecutor<T> sqlExecutor);

}
